package com.demo.controller;

import com.alibaba.fastjson.JSONObject;
import com.demo.dto.User;
import com.demo.utils.JwtUtils;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "/borrow")
public class BorrowController {

    //https://www.cnblogs.com/mengw/p/11385635.html
    @PostMapping(value = "/lists")
    public String list() {
        User user=new User();
        user.setId(1);
        user.setName("victor");
        user.setPassword("123123");
        String string= JSONObject.toJSONString(user);
        return string;
    }
}
